Optimal. Leaf size=470 \[ -\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {2 a b d \cos \left (c-\frac {d f}{e}\right ) \text {Ci}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}+\frac {b^2 d^2 f \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Ci}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}-\frac {b^2 d \text {Ci}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right ) \sin \left (2 c-\frac {2 d f}{e}\right )}{e^3}-\frac {a b d^2 f \text {Ci}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right ) \sin \left (c-\frac {d f}{e}\right )}{e^4}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d^2 f \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}+\frac {2 a b d \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {b^2 d \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {b^2 d^2 f \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.64, antiderivative size = 470, normalized size of antiderivative = 1.00, number of steps
used = 27, number of rules used = 11, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3512, 3398,
3378, 3384, 3380, 3383, 3395, 31, 3393, 3394, 12} \begin {gather*} \frac {a^2}{e^2 \left (\frac {e}{x}+f\right )}-\frac {a^2 f}{2 e^2 \left (\frac {e}{x}+f\right )^2}-\frac {a b d^2 f \sin \left (c-\frac {d f}{e}\right ) \text {CosIntegral}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}-\frac {2 a b d \cos \left (c-\frac {d f}{e}\right ) \text {CosIntegral}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {a b d^2 f \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}+\frac {2 a b d \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (\frac {e}{x}+f\right )}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (\frac {e}{x}+f\right )}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (\frac {e}{x}+f\right )^2}+\frac {b^2 d^2 f \cos \left (2 c-\frac {2 d f}{e}\right ) \text {CosIntegral}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}-\frac {b^2 d \sin \left (2 c-\frac {2 d f}{e}\right ) \text {CosIntegral}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {b^2 d^2 f \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^4}-\frac {b^2 d \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{e^3}-\frac {b^2 d f \sin \left (c+\frac {d}{x}\right ) \cos \left (c+\frac {d}{x}\right )}{e^3 \left (\frac {e}{x}+f\right )}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (\frac {e}{x}+f\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (\frac {e}{x}+f\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 3378
Rule 3380
Rule 3383
Rule 3384
Rule 3393
Rule 3394
Rule 3395
Rule 3398
Rule 3512
Rubi steps
\begin {align*} \int \frac {\left (a+b \sin \left (c+\frac {d}{x}\right )\right )^2}{(e+f x)^3} \, dx &=-\text {Subst}\left (\int \left (-\frac {f (a+b \sin (c+d x))^2}{e (f+e x)^3}+\frac {(a+b \sin (c+d x))^2}{e (f+e x)^2}\right ) \, dx,x,\frac {1}{x}\right )\\ &=-\frac {\text {Subst}\left (\int \frac {(a+b \sin (c+d x))^2}{(f+e x)^2} \, dx,x,\frac {1}{x}\right )}{e}+\frac {f \text {Subst}\left (\int \frac {(a+b \sin (c+d x))^2}{(f+e x)^3} \, dx,x,\frac {1}{x}\right )}{e}\\ &=-\frac {\text {Subst}\left (\int \left (\frac {a^2}{(f+e x)^2}+\frac {2 a b \sin (c+d x)}{(f+e x)^2}+\frac {b^2 \sin ^2(c+d x)}{(f+e x)^2}\right ) \, dx,x,\frac {1}{x}\right )}{e}+\frac {f \text {Subst}\left (\int \left (\frac {a^2}{(f+e x)^3}+\frac {2 a b \sin (c+d x)}{(f+e x)^3}+\frac {b^2 \sin ^2(c+d x)}{(f+e x)^3}\right ) \, dx,x,\frac {1}{x}\right )}{e}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {(2 a b) \text {Subst}\left (\int \frac {\sin (c+d x)}{(f+e x)^2} \, dx,x,\frac {1}{x}\right )}{e}-\frac {b^2 \text {Subst}\left (\int \frac {\sin ^2(c+d x)}{(f+e x)^2} \, dx,x,\frac {1}{x}\right )}{e}+\frac {(2 a b f) \text {Subst}\left (\int \frac {\sin (c+d x)}{(f+e x)^3} \, dx,x,\frac {1}{x}\right )}{e}+\frac {\left (b^2 f\right ) \text {Subst}\left (\int \frac {\sin ^2(c+d x)}{(f+e x)^3} \, dx,x,\frac {1}{x}\right )}{e}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {(2 a b d) \text {Subst}\left (\int \frac {\cos (c+d x)}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}-\frac {\left (2 b^2 d\right ) \text {Subst}\left (\int \frac {\sin (2 c+2 d x)}{2 (f+e x)} \, dx,x,\frac {1}{x}\right )}{e^2}+\frac {\left (b^2 d^2 f\right ) \text {Subst}\left (\int \frac {1}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (2 b^2 d^2 f\right ) \text {Subst}\left (\int \frac {\sin ^2(c+d x)}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}+\frac {(a b d f) \text {Subst}\left (\int \frac {\cos (c+d x)}{(f+e x)^2} \, dx,x,\frac {1}{x}\right )}{e^2}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}+\frac {b^2 d^2 f \log \left (f+\frac {e}{x}\right )}{e^4}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {\left (b^2 d\right ) \text {Subst}\left (\int \frac {\sin (2 c+2 d x)}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}-\frac {\left (a b d^2 f\right ) \text {Subst}\left (\int \frac {\sin (c+d x)}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (2 b^2 d^2 f\right ) \text {Subst}\left (\int \left (\frac {1}{2 (f+e x)}-\frac {\cos (2 c+2 d x)}{2 (f+e x)}\right ) \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (2 a b d \cos \left (c-\frac {d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {d f}{e}+d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}+\frac {\left (2 a b d \sin \left (c-\frac {d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {d f}{e}+d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {2 a b d \cos \left (c-\frac {d f}{e}\right ) \text {Ci}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}+\frac {2 a b d \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}+\frac {\left (b^2 d^2 f\right ) \text {Subst}\left (\int \frac {\cos (2 c+2 d x)}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (b^2 d \cos \left (2 c-\frac {2 d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {2 d f}{e}+2 d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}-\frac {\left (a b d^2 f \cos \left (c-\frac {d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {d f}{e}+d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (b^2 d \sin \left (2 c-\frac {2 d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {2 d f}{e}+2 d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^2}-\frac {\left (a b d^2 f \sin \left (c-\frac {d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {d f}{e}+d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {2 a b d \cos \left (c-\frac {d f}{e}\right ) \text {Ci}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}-\frac {b^2 d \text {Ci}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right ) \sin \left (2 c-\frac {2 d f}{e}\right )}{e^3}-\frac {a b d^2 f \text {Ci}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right ) \sin \left (c-\frac {d f}{e}\right )}{e^4}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d^2 f \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^4}+\frac {2 a b d \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}-\frac {b^2 d \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}+\frac {\left (b^2 d^2 f \cos \left (2 c-\frac {2 d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {2 d f}{e}+2 d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}-\frac {\left (b^2 d^2 f \sin \left (2 c-\frac {2 d f}{e}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {2 d f}{e}+2 d x\right )}{f+e x} \, dx,x,\frac {1}{x}\right )}{e^3}\\ &=-\frac {a^2 f}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {a^2}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d f \cos \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {2 a b d \cos \left (c-\frac {d f}{e}\right ) \text {Ci}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}+\frac {b^2 d^2 f \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Ci}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right )}{e^4}-\frac {b^2 d \text {Ci}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right ) \sin \left (2 c-\frac {2 d f}{e}\right )}{e^3}-\frac {a b d^2 f \text {Ci}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right ) \sin \left (c-\frac {d f}{e}\right )}{e^4}-\frac {a b f \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )^2}+\frac {2 a b \sin \left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {b^2 d f \cos \left (c+\frac {d}{x}\right ) \sin \left (c+\frac {d}{x}\right )}{e^3 \left (f+\frac {e}{x}\right )}-\frac {b^2 f \sin ^2\left (c+\frac {d}{x}\right )}{2 e^2 \left (f+\frac {e}{x}\right )^2}+\frac {b^2 \sin ^2\left (c+\frac {d}{x}\right )}{e^2 \left (f+\frac {e}{x}\right )}-\frac {a b d^2 f \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^4}+\frac {2 a b d \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (\frac {d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}-\frac {b^2 d \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right )}{e^3}-\frac {b^2 d^2 f \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (\frac {2 d \left (f+\frac {e}{x}\right )}{e}\right )}{e^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.22, size = 740, normalized size = 1.57 \begin {gather*} -\frac {2 a^2 e^4+b^2 e^4+4 a b d e^2 f^2 x \cos \left (c+\frac {d}{x}\right )+4 a b d e f^3 x^2 \cos \left (c+\frac {d}{x}\right )+2 b^2 e^3 f x \cos \left (2 \left (c+\frac {d}{x}\right )\right )+b^2 e^2 f^2 x^2 \cos \left (2 \left (c+\frac {d}{x}\right )\right )-4 b^2 d f (e+f x)^2 \text {Ci}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right ) \left (d f \cos \left (2 c-\frac {2 d f}{e}\right )-e \sin \left (2 c-\frac {2 d f}{e}\right )\right )+4 a b d f (e+f x)^2 \text {Ci}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right ) \left (2 e \cos \left (c-\frac {d f}{e}\right )+d f \sin \left (c-\frac {d f}{e}\right )\right )-8 a b e^3 f x \sin \left (c+\frac {d}{x}\right )-4 a b e^2 f^2 x^2 \sin \left (c+\frac {d}{x}\right )+2 b^2 d e^2 f^2 x \sin \left (2 \left (c+\frac {d}{x}\right )\right )+2 b^2 d e f^3 x^2 \sin \left (2 \left (c+\frac {d}{x}\right )\right )+4 a b d^2 e^2 f^2 \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+8 a b d^2 e f^3 x \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+4 a b d^2 f^4 x^2 \cos \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )-8 a b d e^3 f \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )-16 a b d e^2 f^2 x \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )-8 a b d e f^3 x^2 \sin \left (c-\frac {d f}{e}\right ) \text {Si}\left (d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+4 b^2 d e^3 f \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+8 b^2 d e^2 f^2 x \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+4 b^2 d e f^3 x^2 \cos \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+4 b^2 d^2 e^2 f^2 \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+8 b^2 d^2 e f^3 x \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )+4 b^2 d^2 f^4 x^2 \sin \left (2 c-\frac {2 d f}{e}\right ) \text {Si}\left (2 d \left (\frac {f}{e}+\frac {1}{x}\right )\right )}{4 e^4 f (e+f x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1138\) vs.
\(2(466)=932\).
time = 0.20, size = 1139, normalized size = 2.42
method | result | size |
risch | \(\frac {i a b \,d^{2} {\mathrm e}^{-\frac {i \left (c e -d f \right )}{e}} \expIntegral \left (1, \frac {i d}{x}+i c -\frac {i \left (c e -d f \right )}{e}\right ) f}{2 e^{4}}+\frac {a b d \,{\mathrm e}^{-\frac {i \left (c e -d f \right )}{e}} \expIntegral \left (1, \frac {i d}{x}+i c -\frac {i \left (c e -d f \right )}{e}\right )}{e^{3}}-\frac {a^{2}}{2 f \left (f x +e \right )^{2}}-\frac {b^{2}}{4 f \left (f x +e \right )^{2}}-\frac {d^{2} b^{2} {\mathrm e}^{-\frac {2 i \left (c e -d f \right )}{e}} \expIntegral \left (1, \frac {2 i d}{x}+2 i c -\frac {2 i \left (c e -d f \right )}{e}\right ) f}{2 e^{4}}+\frac {i d \,b^{2} {\mathrm e}^{-\frac {2 i \left (c e -d f \right )}{e}} \expIntegral \left (1, \frac {2 i d}{x}+2 i c -\frac {2 i \left (c e -d f \right )}{e}\right )}{2 e^{3}}-\frac {i d \,b^{2} {\mathrm e}^{\frac {2 i \left (c e -d f \right )}{e}} \expIntegral \left (1, -\frac {2 i d}{x}-2 i c -\frac {2 \left (-i c e +i d f \right )}{e}\right )}{2 e^{3}}-\frac {d^{2} b^{2} f \,{\mathrm e}^{\frac {2 i \left (c e -d f \right )}{e}} \expIntegral \left (1, -\frac {2 i d}{x}-2 i c -\frac {2 \left (-i c e +i d f \right )}{e}\right )}{2 e^{4}}+\frac {a b d \,{\mathrm e}^{\frac {i \left (c e -d f \right )}{e}} \expIntegral \left (1, -\frac {i d}{x}-i c -\frac {-i c e +i d f}{e}\right )}{e^{3}}-\frac {i a b \,d^{2} f \,{\mathrm e}^{\frac {i \left (c e -d f \right )}{e}} \expIntegral \left (1, -\frac {i d}{x}-i c -\frac {-i c e +i d f}{e}\right )}{2 e^{4}}+\frac {i a b x \left (2 i d^{3} f^{4} x^{3}+6 i d^{3} e \,f^{3} x^{2}+6 i d^{3} e^{2} f^{2} x +2 i d^{3} e^{3} f \right ) \cos \left (\frac {c x +d}{x}\right )}{2 e^{3} \left (f x +e \right )^{2} \left (d^{2} x^{2} f^{2}+2 d^{2} e f x +d^{2} e^{2}\right )}-\frac {a b x \left (-2 d^{2} f^{3} x^{3}-8 d^{2} e \,f^{2} x^{2}-10 d^{2} e^{2} f x -4 d^{2} e^{3}\right ) \sin \left (\frac {c x +d}{x}\right )}{2 e^{2} \left (f x +e \right )^{2} \left (d^{2} x^{2} f^{2}+2 d^{2} e f x +d^{2} e^{2}\right )}+\frac {b^{2} x \left (-2 d^{2} f^{3} x^{3}-8 d^{2} e \,f^{2} x^{2}-10 d^{2} e^{2} f x -4 d^{2} e^{3}\right ) \cos \left (\frac {2 c x +2 d}{x}\right )}{8 e^{2} \left (f x +e \right )^{2} \left (d^{2} x^{2} f^{2}+2 d^{2} e f x +d^{2} e^{2}\right )}+\frac {i b^{2} x \left (4 i d^{3} f^{4} x^{3}+12 i d^{3} e \,f^{3} x^{2}+12 i d^{3} e^{2} f^{2} x +4 i d^{3} e^{3} f \right ) \sin \left (\frac {2 c x +2 d}{x}\right )}{8 e^{3} \left (f x +e \right )^{2} \left (d^{2} x^{2} f^{2}+2 d^{2} e f x +d^{2} e^{2}\right )}\) | \(866\) |
derivativedivides | \(\text {Expression too large to display}\) | \(1139\) |
default | \(\text {Expression too large to display}\) | \(1139\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 910 vs.
\(2 (442) = 884\).
time = 0.44, size = 910, normalized size = 1.94 \begin {gather*} \frac {b^{2} f^{2} x^{2} e^{2} + 2 \, b^{2} f x e^{3} - 2 \, {\left (b^{2} f^{2} x^{2} e^{2} + 2 \, b^{2} f x e^{3}\right )} \cos \left (\frac {c x + d}{x}\right )^{2} - 4 \, {\left ({\left (a b d f^{3} x^{2} e + 2 \, a b d f^{2} x e^{2} + a b d f e^{3}\right )} \operatorname {Ci}\left (\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + {\left (a b d f^{3} x^{2} e + 2 \, a b d f^{2} x e^{2} + a b d f e^{3}\right )} \operatorname {Ci}\left (-\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + {\left (a b d^{2} f^{4} x^{2} + 2 \, a b d^{2} f^{3} x e + a b d^{2} f^{2} e^{2}\right )} \operatorname {Si}\left (\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right )\right )} \cos \left (-{\left (d f - c e\right )} e^{\left (-1\right )}\right ) + 2 \, {\left ({\left (b^{2} d^{2} f^{4} x^{2} + 2 \, b^{2} d^{2} f^{3} x e + b^{2} d^{2} f^{2} e^{2}\right )} \operatorname {Ci}\left (\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + {\left (b^{2} d^{2} f^{4} x^{2} + 2 \, b^{2} d^{2} f^{3} x e + b^{2} d^{2} f^{2} e^{2}\right )} \operatorname {Ci}\left (-\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) - 2 \, {\left (b^{2} d f^{3} x^{2} e + 2 \, b^{2} d f^{2} x e^{2} + b^{2} d f e^{3}\right )} \operatorname {Si}\left (\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right )\right )} \cos \left (-2 \, {\left (d f - c e\right )} e^{\left (-1\right )}\right ) - 4 \, {\left (a b d f^{3} x^{2} e + a b d f^{2} x e^{2}\right )} \cos \left (\frac {c x + d}{x}\right ) - {\left (2 \, a^{2} + b^{2}\right )} e^{4} - 2 \, {\left ({\left (a b d^{2} f^{4} x^{2} + 2 \, a b d^{2} f^{3} x e + a b d^{2} f^{2} e^{2}\right )} \operatorname {Ci}\left (\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + {\left (a b d^{2} f^{4} x^{2} + 2 \, a b d^{2} f^{3} x e + a b d^{2} f^{2} e^{2}\right )} \operatorname {Ci}\left (-\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) - 4 \, {\left (a b d f^{3} x^{2} e + 2 \, a b d f^{2} x e^{2} + a b d f e^{3}\right )} \operatorname {Si}\left (\frac {{\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right )\right )} \sin \left (-{\left (d f - c e\right )} e^{\left (-1\right )}\right ) - 2 \, {\left ({\left (b^{2} d f^{3} x^{2} e + 2 \, b^{2} d f^{2} x e^{2} + b^{2} d f e^{3}\right )} \operatorname {Ci}\left (\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + {\left (b^{2} d f^{3} x^{2} e + 2 \, b^{2} d f^{2} x e^{2} + b^{2} d f e^{3}\right )} \operatorname {Ci}\left (-\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right ) + 2 \, {\left (b^{2} d^{2} f^{4} x^{2} + 2 \, b^{2} d^{2} f^{3} x e + b^{2} d^{2} f^{2} e^{2}\right )} \operatorname {Si}\left (\frac {2 \, {\left (d f x + d e\right )} e^{\left (-1\right )}}{x}\right )\right )} \sin \left (-2 \, {\left (d f - c e\right )} e^{\left (-1\right )}\right ) + 4 \, {\left (a b f^{2} x^{2} e^{2} + 2 \, a b f x e^{3} - {\left (b^{2} d f^{3} x^{2} e + b^{2} d f^{2} x e^{2}\right )} \cos \left (\frac {c x + d}{x}\right )\right )} \sin \left (\frac {c x + d}{x}\right )}{4 \, {\left (f^{3} x^{2} e^{4} + 2 \, f^{2} x e^{5} + f e^{6}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 3062 vs.
\(2 (442) = 884\).
time = 7.92, size = 3062, normalized size = 6.51 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\sin \left (c+\frac {d}{x}\right )\right )}^2}{{\left (e+f\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________